<template>
  <div>
    <h2>我是Count组件</h2>
    <p>Count:{{ count }}</p>
    <button @click="increment">累加</button>
  </div>
</template>

<script>
export default {
  name: "Count",
  data() {
    return {
      count: 0,
    };
  },
  methods: {
    increment() {
      this.count++;
    },
  },
};
</script>

<style>
</style>